package com.doraro.platform.module.user.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.doraro.platform.module.user.enums.SysMenuType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class SysMenuDetail {
    @ApiModelProperty(value = "菜单 ID")
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;

    private Integer parentId;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "菜单URL")
    private String url;

    @ApiModelProperty(value = "菜单类型(0-目录,1-导航菜单,2-功能按钮)")
    private SysMenuType menuType;

    @ApiModelProperty(value = "排序")
    private Integer orderNum;


    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "权限")
    private String perm;

    @TableField(exist = false)
    @ApiModelProperty(value = "子菜单")
    private List<SysMenuDetail> children;
}
